

aws dynamodb create-table --table-name icnet-EDXLCache ^
  --attribute-definitions AttributeName=distributionID,AttributeType=S AttributeName=senderID,AttributeType=S ^
  --key-schema AttributeName=distributionID,KeyType=HASH AttributeName=senderID,KeyType=RANGE ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb create-table --table-name icnet-ContentCache ^
  --attribute-definitions AttributeName=_ContentHash,AttributeType=N AttributeName=distributionID,AttributeType=S AttributeName=senderID,AttributeType=S ^
  --key-schema AttributeName=_ContentHash,KeyType=HASH ^
  --global-secondary-indexes file://ContentCache-GSIs.json ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb create-table --table-name icnet-FeedCache ^
  --attribute-definitions AttributeName=_FeedHash,AttributeType=S AttributeName=_ContentHash,AttributeType=N ^
  --key-schema AttributeName=_FeedHash,KeyType=HASH AttributeName=_ContentHash,KeyType=RANGE ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb create-table --table-name icnet-ValueLists ^
  --attribute-definitions AttributeName=valueListUrn,AttributeType=S ^
  --key-schema AttributeName=valueListUrn,KeyType=HASH ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb create-table --table-name icnet-Rules ^
  --attribute-definitions AttributeName=valueListUrn,AttributeType=S AttributeName=value,AttributeType=S ^
  --key-schema AttributeName=valueListUrn,KeyType=HASH AttributeName=value,KeyType=RANGE ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb create-table --table-name icnet-EDXLHistory ^
  --attribute-definitions AttributeName=distributionID,AttributeType=S AttributeName=_ReceivedTime,AttributeType=S AttributeName=senderID,AttributeType=S ^
  --key-schema AttributeName=distributionID,KeyType=HASH AttributeName=_ReceivedTime,KeyType=RANGE ^
  --local-secondary-indexes file://EDXLHistory-LSIs.json ^
  --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 
 

aws dynamodb list-tables

echo "tables created"
